// components/vipAgreement/vipAgreement.js

Component({
  options: {
    addGlobalClass: true
  },
  /**
   * 组件的属性列表
   */
  properties: {
    agreementShow: {
      type: Boolean,
      value: false
    }
  },
  


  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    showAgreementClose(e) {
      let agreement = JSON.parse(e.currentTarget.dataset.agreement)
      this.setData({
        agreementShow: false
      })
      this.triggerEvent('showAgreementClose', agreement)
    }
  }
})
